<template>
    <el-upload class="avatar-uploader" accept="image/png, image/jpeg" :action="upload_url" :show-file-list="false">
        <el-avatar :src="useSystemStore.userInfo.avatar" :size="80" />
    </el-upload>
</template>

<script lang="ts" setup>
import { useSystem } from '@/store'
import { upload_url } from '@/api'

const useSystemStore = useSystem()
</script>

<style scoped lang="scss"></style>
